﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Services;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BGM_Project : System.Web.Services.WebService
    {
        IBLL_BGM_Project bll = new B_BGM_Project();

        [WebMethod]
        public List<M_BGM_Project> GetFull(string bgm_year
            , string job_site_seq, string bgm_option_seq)
        {
            return (List<M_BGM_Project>)bll.GetFull(bgm_year
                , job_site_seq, bgm_option_seq);
        }

        [WebMethod]
        public List<M_BGM_Project> GetBudget(string bgm_proj_seq, string bgm_source_seq
            , string bgm_proj_oper_seq)
        {
            return (List<M_BGM_Project>)bll.GetBudget(bgm_proj_seq, bgm_source_seq
                , bgm_proj_oper_seq);
        }

        [WebMethod]
        public List<M_BGM_Project> GetList(string bgm_year
            , string job_site_seq, string bgm_option_seq)
        {
            return (List<M_BGM_Project>)bll.GetList(bgm_year
                , job_site_seq, bgm_option_seq);
        }

        [WebMethod]
        public M_BGM_Project GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        //[WebMethod]
        //public void Insert(M_BGM_Project info)
        //{
        //    bll.Insert(info);
        //}

        //[WebMethod]
        //public void Update(M_BGM_Project info)
        //{
        //    bll.Update(info);
        //}

        //[WebMethod]
        //public void Delete(M_BGM_Project info)
        //{
        //    bll.Delete(info);
        //}

        //[WebMethod]
        //public void ChangeStatus(M_BGM_Project info)
        //{
        //    bll.ChangeStatus(info);
        //}

        //[WebMethod]
        //public void CloseOperation(M_BGM_ProjectOperation info)
        //{
        //    bll.CloseOperation(info);
        //}

        //[WebMethod]
        //public string SelectRecentInsertedRoleSeq()
        //{
        //    return bll.SelectRecentInsertedRoleSeq();
        //}

        //public DataTable Report_ProjectOperation(string seq)
        //{
        //    return bll.Report_ProjectOperation(seq);
        //}

        //public DataTable SubReport_ProjectOperation(string seq)
        //{
        //    return bll.SubReport_ProjectOperation(seq);
        //}

        //public string GetOptionProduct(string seq)
        //{
        //    return bll.GetOptionProduct(seq);
        //}

        private void InitializeComponent()
        {

        }
    }
}
